import request from "@/api/request";
import { type AxiosRequestConfig } from "axios";
import { type DeepRequired } from "../../interface";

/**
 * /dashboard/pieChart/{type}
 */
export function getDashboardPieChartByType(params: GetDashboardPieChartByTypeParams, config?: AxiosRequestConfig) {
    return request.get<DeepRequired<any>>(`/dashboard/pieChart/${params.type}`, config);
}

export interface GetDashboardPieChartByTypeParams {
    type: string;
}
